#!usr/bin/python3
import re
test1 = []
test2 = []
test3 = []
test4 = []
shu = input("请输入数字:").split()
for i in shu:
    ree = re.findall('[.]',i)
    if ree == []:
        if int(i) > 0:
            ret = re.findall('^[+]?\d+$',i)
            test1 = test1 + ret
        else:
            ret1 = re.findall('^[-]+\d+$',i)
            test2 = test2 + ret1
    else:
        r1 = re.findall('^-',i)
        if r1 == []:
            test3.append(i)
        else:
            test4.append(i)
print(test1)
print(test2)
print(test3)
print(test4)
